<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt" %>
<html lang="en">
	<head>
	    <meta charset="UTF-8">
	</head>
	<body>
		<div>
		<a href="/message/input.htm">新增</a>
			<table border="1">
				<tr>
					<td>序号</td>
					<td>内容</td>
					<td>时间</td>
					<td>编辑</td>
				</tr>
				<c:forEach items="${messages}" var="m">
				<tr>
					<td>${m.id}</td>
					<td>${m.content}</td>
					<td>${m.createTime}</td>
					<td><a href="/message/input.htm?id=${m.id}">编辑</a> | <a href="/message/delete.htm?id=${m.id}">删除</a></td>
				</tr>
				</c:forEach>
			</table>
		</div>
	</body>
</html>